package com.qf.service.Impl;

import com.qf.entity.TotalSales;
import com.qf.mapper.TotalSalesMapper;
import com.qf.service.TotalSalesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class TotalSalesServiceImpl implements TotalSalesService {

    @Autowired
    private TotalSalesMapper mapper;

    @Override
    public TotalSales login(TotalSales totalSales) {
        return mapper.login(totalSales);
    }

    @Override
    public List<TotalSales> findAll(HashMap<String, String> map) {
        return mapper.findAll(map);
    }

    @Override
    public boolean deleteById(int id) {
        return mapper.deleteById(id);
    }

    @Override
    public boolean addTotalSales(TotalSales totalSales) {
        return mapper.addTotalSales(totalSales);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return mapper.delBatch(ids);
    }

    @Override
    public boolean change(TotalSales totalSales) {
        return mapper.change(totalSales);
    }

    @Override
    public List<String> findAll1() {
        return mapper.findAll1();
    }


}
